home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 1 / Cream of the Crop 1.iso / PROGRAM / UUPC11QS.ARJ / DCPSYS.H < prev    next >
C/C++ Source or Header  |  1991-08-21  |  2KB  |  55 lines

  1. /*--------------------------------------------------------------------*/
  2. /*    dcpsys.h                                                        */
  3. /*                                                                    */
  4. /*    System functions for dcp (UUPC/extended data communications)    */
  5. /*                                                                    */
  6. /*    Change History:                                                 */
  7. /*                                                                    */
  8. /*    08 Sep 90   -  Create via Microsoft C compiler /Zg       ahd    */
  9. /*--------------------------------------------------------------------*/
  10.  
  11. #define  TIMEOUT     -1
  12.  
  13. #define MSGTIME       20      /* Timeout for many operations         */
  14. #define PROTOCOL_TIME 40      /* Timeout for protocol exchange msgs  */
  15.  
  16. /*--------------------------------------------------------------------*/
  17. /*              systems (L.sys) file fields definitions               */
  18. /*--------------------------------------------------------------------*/
  19.  
  20. typedef enum {
  21.    FLD_REMOTE  =   0,
  22.    FLD_CCTIME,
  23.    FLD_TYPE,
  24.    FLD_SPEED,
  25.    FLD_PHONE,
  26.    FLD_PROTO,
  27.    FLD_EXPECT
  28.    } FLDS;
  29.  
  30.  
  31. extern char *flds[60];
  32. extern int  kflds;
  33.  
  34. boolean  calledhost(char  *hisremote);
  35. void     didcall(char  *hisremote);
  36.  
  37. CONN_STATE     getsystem(void);
  38. CONN_STATE     startup_server(void);
  39. CONN_STATE     startup_client(void);
  40. CONN_STATE     sysend(void);
  41.  
  42. XFER_STATE     scandir(char  *remote);
  43.  
  44. int   rmsg(char *msg, const boolean synch, unsigned int msgtime);
  45. void  wmsg(char *msg, const boolean synch);
  46.  
  47. extern int (*sendpkt)(char *data, int len);
  48. extern int (*getpkt)(char *data, int *len);
  49. extern int (*openpk)(void);
  50. extern int (*closepk)(void);
  51. extern int (*wrmsg)(char *data);
  52. extern int (*rdmsg)(char *data);
  53. extern int (*eofpkt)(void);
  54. extern int (*filepkt)(void);
  55.